const jobConstants = {
    'NONE': 0,

    'AST': 1 ,
    'WHM': 2 ,
    'SGE': 3 ,
    'SCH': 4 ,

    'PLD': 5 ,
    'WAR': 6 ,
    'DRK': 7 ,
    'GNB': 8 ,

    'MNK': 9 ,
    'DRG': 10,
    'NIN': 11,
    'SAM': 12,
    'RPR': 13,

    'BRD': 14,
    'MCH': 15,
    'DNC': 16,

    'BLM': 17,
    'SMN': 18,
    'RDM': 19,
}

const jobName = [
    [jobConstants.NONE , '未知'],

    [jobConstants.AST, '占星'],
    [jobConstants.WHM, '白魔'],
    [jobConstants.SGE, '贤者'],
    [jobConstants.SCH, '学者'],

    [jobConstants.PLD, '骑士'],
    [jobConstants.WAR, '战士'],
    [jobConstants.DRK, '黑骑'],
    [jobConstants.GNB, '绝枪'],

    [jobConstants.MNK, '武僧'],
    [jobConstants.DRG, '龙骑'],
    [jobConstants.NIN, '忍者'],
    [jobConstants.SAM, '武士'],
    [jobConstants.RPR, '钐镰'],

    [jobConstants.BRD, '诗人'],
    [jobConstants.MCH, '机工'],
    [jobConstants.DNC, '舞者'],

    [jobConstants.BLM, '黑魔'],
    [jobConstants.SMN, '召唤'],
    [jobConstants.RDM, '赤魔'],
]

const dutyTypeConstants = {
    Roulette:   0,
    Dungeon:    1,
    Raid:       2,
    Guildhest:  3,
    Trial:      4
}

const versionConstants = {
    ARealmReborn:   2,
    Heavensward:    3,
    Stormblood:     4,
    Shadowbringers: 5,
    Endwalker:      6,
}

const roleConstants = {
    NONE: -1,
    H: 0,
    T: 1,
    D: 2
}

const sampleData = {
    data: [
        {
            count: 1,
            duty: "讨伐彷徨死灵！",
            job: jobConstants.AST,
            completed: true,
            description: "第一把导随，真希望每把都能遇到好队友\n（不需要的部分空着就行）",
            image: "",
            date: "2022-11-22T08:00:00.000Z",
        },
        {
            count: 2,
            duty: "讨伐彷徨死灵！",
            job: jobConstants.WHM,
            completed: true,
            description: "第二把导随，真希望每把都能遇到好队友\n（日期和时间用文本型格式和日期型格式都可以哦甚至可以混着用也可以把时间空着）",
            image: "",
            date: "2022-11-21T16:00:00.000Z"
        },
        {
            count: -1,
            duty: "天幕魔导城最终决战",
            job: jobConstants.AST,
            completed: false,
            description: "未完成时场次会自动标记为-1,当然也可以自己改(也可以直接摆烂不记录)",
            image: "",
            date: "2022-11-23T02:38:38.422Z"
        }
    ]
}

const timeSetting = {
    NOW: '现在',
    TODAY: '今天',
    THIS_HOUR: '本小时',
    NEXT_HOUR: '下个小时',
    PRE_HOUR: '前一小时',
    PRE_PRE_HOUR: '前两小时'
}

export const ROULETTE_DATA_LIST = 'RouletteDataList'
export const ROULETTE_DATA = 'RouletteData'
export const ROULETTE_DATA_PREFIX = 'RouletteData:'
export const SETTING_PREFIX = 'setting:'
export const ACCOUNT_PREFIX = 'account:'
export const DEFAULT_REPO_NAME = 'kaidao-data'
export const GITEE_TOKEN_URL = 'https://gitee.com/profile/personal_access_tokens'
export const PROJECT_URL = 'https://gitee.com/lizzii/kaidao-vue3'
export const GITEE_TOKEN_NEW_URL = GITEE_TOKEN_URL + '/new'
export const PROJECT_ISSUES_NEW_URL = PROJECT_URL + '/issues/new'
export const SUFFIX_JSON = '.json'
export const SUFFIX_XLSX = '.xlsx'
export const SUFFIX_XLS = '.xls'

export const JobName = JSON.parse(JSON.stringify(jobName))
export const JobConstants = JSON.parse(JSON.stringify(jobConstants))
export const VersionConstants = JSON.parse(JSON.stringify(versionConstants))
export const RoleConstants = JSON.parse(JSON.stringify(roleConstants))
export const DutyTypeConstants = JSON.parse(JSON.stringify(dutyTypeConstants))
export const SampleData = JSON.parse(JSON.stringify(sampleData))
export const TIME_SETTING = JSON.parse(JSON.stringify(timeSetting))